package com.sg.dto.biz.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc AngleScreenDto
 * @使用场景
 */
@Data
public class AngleScreenDto extends BaseDto implements Serializable {

    /**
     * 视角筛选条件标识
     */
    @ApiModelProperty("视角筛选条件标识")
    private String angleScreenCode;

    /**
     * 视角筛选条件名称
     */
    @ApiModelProperty("视角筛选条件名称")
    private String angleScreenName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        AngleScreenDto that = (AngleScreenDto) o;
        return angleScreenCode == that.angleScreenCode && angleScreenName == that.angleScreenName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), angleScreenCode, angleScreenName);
    }

}
